﻿using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;
using System.Data;

namespace OgilvyOne.BLL
{
    
    public class IndexBannerBll
    {
        private readonly static IIndexBanner dal = IndexBannerFactory.create();
        public int add(IndexBannerModel model)
        {
            return dal.Add(model);
        }
        public bool update(IndexBannerModel model)
        {
            return dal.Update(model);
        }
        public bool Delete(int Banner_ID)
        {
            return dal.Delete(Banner_ID);
        }
        public bool DeleteList(string Banner_IDlist)
        {
            return dal.DeleteList(Banner_IDlist);
        }
        public IndexBannerModel GetModel(int Banner_ID)
        {
            return dal.GetModel(Banner_ID);
        }
        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }
        public bool Exists(string bannername,int bannerid)
        {
            return dal.Exists(bannername, bannerid);
        }
        public IndexBannerModel GetModelByOrderNum(int OrderNum)
        {
            return dal.GetModelByOrderNum(OrderNum);
        }
    }
}
